sortlistmodel: Make sort stable
authorBenjamin Otte <otte@redhat.com>
Wed, 11 Dec 2019 00:22:20 +0000 (01:22 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 30 May 2020 23:26:44 +0000 (19:26 -0400)
commitee3faf24b9a5a206d7f5365e1957f54d048d3962
tree5559c89f9f7c5084c9019b6c38858e7d10ab6e49
parent16ab64809387c89f74606930d12ca39b6a19fa67
sortlistmodel: Make sort stable

The sort of the sortlistmodel is now stable with respect to the original
list model.

That means that if the sorter compares items as equal, the model
will make sure those items keep the order they were in in the original
model.

Or in other words: The model guarantees a total order based on the
item's position in the original model.
gtk/gtksortlistmodel.c